package com.wander.designStructural.proxy.staticDesign;

/**
 * @Author : WDYin
 * @Date : 2020/12/10
 * @Desc : 代理主题角色
 */
public class Proxy implements Subject{

    private Subject subject;

    public Proxy(Subject subject) {
        this.subject = subject;
    }

    @Override
    public void saleHouse() {
        System.out.println("I'm Proxy, I'm invoking...");
        subject.saleHouse();
    }
}
